package com.cisetech.web.bobocai.qiantai;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cisetech.vo.bobocai.LRegion;
import com.cisetech.service.RegionService;

/**
 * 推荐地区
 * @author Administrator
 *
 */

@Controller
@RequestMapping(value="regionQiantai")
public class RegionQiantaiController {
	
	@Autowired
	RegionService RegionService;
	
	@ResponseBody
	@RequestMapping(value="/getlist",method=RequestMethod.POST)
	public List<LRegion> getlist(LRegion lregion,HttpServletResponse response,HttpServletRequest request){
		try {
			lregion.setRedian("1");
			List<LRegion> list = RegionService.getlistss(lregion);
			return list;
		} catch (Exception e) {
			return new ArrayList<LRegion>();
		}
	}
	
}
